@extends('admin.common.main')

@section('content')
    <body>
    <article class="page-container">
        <form action="{{route('admin.user.role',$user)}}" method="post" class="form form-horizontal" id="form-member-add">
            @include('admin.common.error')
            @csrf
            <div class="row cl">
                @foreach($role as $val)
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="radio" class="input-radio" value="  {{$val['id']}}" placeholder=""
                               id="role_id"
                               name="role_id"
                        @if($val['id'] == $currentRoleID) checked @endif>
                        {{$val['name']}}
                    </div>
                @endforeach
            </div>
            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                    <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                    <a href="javascript:;" onclick="history.go(-1)" class="c-primary btn btn-dark radius">&lt; 返回上一页</a>
                </div>
            </div>
        </form>
    </article>
@endsection
